/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package horsechess.util;

/**
 *
 * @author Administrator
 */
public class Point {
	private int x;
	private int y;

    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public Point(String str){
        String[] temp=str.split("&&");
        this.x=Integer.parseInt(temp[0]);
        this.y=Integer.parseInt(temp[1]);
    }


    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }


    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return x+"&&"+y;
    }




}
